package com.dk.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author author
 * @since 2022-07-08
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("menu")
public class Menu implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;


    /**
     * 父级id
     */
    @ApiModelProperty(value = "父级id")
    @TableField("parentid")
    private Integer parentid;

    /**
     * 类型
     */
    @ApiModelProperty(value = "类型")
    @TableField("type")
    private String type;

    /**
     * 名字
     */
    @ApiModelProperty(value = "名字")
    @TableField("name")
    private String name;

    /**
     * 状态
     */
    @ApiModelProperty(value = "状态")
    @TableField("start")
    private String start;

    /**
     * 地址
     */
    @ApiModelProperty(value = "地址")
    @TableField("url")
    private String url;
    @ApiModelProperty(value = "子菜单")
    @TableField(exist = false)
    private List<Menu> menu;

}
